package android.ijiajiao.util;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class GetDataUtil {

	public  String getData(InputStream in) throws IOException {
		String data = null;
		StringBuffer buffer = new StringBuffer();
		BufferedReader bf  = new BufferedReader(new InputStreamReader(in, "UTF-8"));
		String line="";
		while((line=bf.readLine())!=null){
			buffer.append(line);
		}
		data = buffer.toString();
		return data;
	}
	
}
